package com.groupsmsproject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class NewGroup extends Activity {
	EditText et;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.newgroup);
		et=(EditText) findViewById(R.id.editText1);	
	}
	public void saveGroupButtonHandler(View v){
		Intent groupNameResult=new Intent();
		groupNameResult.putExtra("groupName", et.getText().toString());
		setResult(RESULT_OK, groupNameResult);
		finish();
	}
}
